import time

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager

chromeIns = ChromeDriverManager().install()
driver = webdriver.Chrome(service=Service(chromeIns))

driver.get("https://www.baidu.com")
driver.maximize_window()

driver.implicitly_wait(5)

driver.find_element(By.CSS_SELECTOR,"#kw").send_keys("歼20")
driver.find_element(By.CSS_SELECTOR,"#su").click()

time.sleep(3)

driver.quit()